package com.lucher.tangstore.dao;

import com.lucher.tangstore.po.Coderule;

import java.util.List;

public interface CoderuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Coderule record);

    int insertSelective(Coderule record);

    Coderule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Coderule record);

    int updateByPrimaryKey(Coderule record);
    
    //自定义接口
    List<Coderule> findByList(Coderule record);
    List<Coderule> findByListForPage(Coderule record);
    int findByCount(Coderule record);

    Coderule findByCodetypeStr(String codetype);
}